/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aso.upna.controllers;

import javax.swing.JLabel;

/**
 *
 * @author triki
 */
public class IconController {

    private JLabel lab;
    private String icon_ok;
    private String icon_fail;

    public IconController(JLabel label,String path_ok,String path_fail)
    {
        lab = label;
        icon_ok = new String(path_ok);
        icon_fail = new String(path_fail);
    }

    public void setIconToOkState()
    {
        lab.setIcon(new javax.swing.ImageIcon(icon_ok));
    }

    public void setIconToFailState()
    {
        lab.setIcon(new javax.swing.ImageIcon(icon_fail));
    }
}
